/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.wechatuser.service.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseDTO;
import me.zhengjie.modules.system.domain.User;

import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author maojinhui
* @date 2020-08-21
**/
@Getter
@Setter
public class WechatUserDto extends BaseDTO implements Serializable {

    private Long id;

    private User user;

    /** 用户openid */
    private String openId;

    @JsonIgnore
    /** 小程序session_key */
    private String sessionKey;


    /** 多应用间用户唯一id */
    private String unionid;

    /** 用户昵称 */
    private String nickName;

    /** 用户性别 */
    private Integer gender;

    /** 用户语言 */
    private String language;

    /** 城市 */
    private String city;

    /** 省 */
    private String province;

    /** 国家 */
    private String country;

    /** 头像 */
    private String avatarurl;

    /** 生成的用户的id */
    private String userId;

    /** 用户绑定手机号 */
    @JsonIgnore
    private String phone;


}